#ifndef VISIONMONITORWIDGET_H
#define VISIONMONITORWIDGET_H

#include <QWidget>
#include <QDebug>
#include <QLabel>
#include <QFrame>
#include <QPushButton>
#include <QButtonGroup>
#include <QGroupBox>

#include <QVBoxLayout>
#include <QHBoxLayout>

#include <QCamera>
#include <QCameraViewfinder>
#include <QCameraImageCapture>

#include "../component/mytableview.h"

//视觉识别页组件(+巡线)
class VisionMonitorWidget : public QWidget
{
    Q_OBJECT
public:
    explicit VisionMonitorWidget(QWidget *parent = nullptr);

    void setUI();

signals:

private slots:
    void btns_monitor_clicked(int id);

private:
    QCamera *cam;
    QCameraViewfinder *view_finder;
    QCameraImageCapture *img_capcture;

    QButtonGroup *btns_monitor;

    QList<Fruit*> res_fruits;
    QLabel *seek_status;
};

#endif // VISIONMONITORWIDGET_H
